<?php

$MIOLO->Trace('file:'.$_SERVER['SCRIPT_NAME']);

if ( ! $module )
{
	$module = 'sysacad';
}

if (($sa = $context->ShiftAction()) != NULL )
{
	$a = $sa;
}
elseif ($module != 'sysacad')
{
	$a = 'main';
}


$MIOLO->checkAccess('admin',A_ACCESS,true);

$navbar->AddOption( _M('Sysacad', $module) ,$module, 'main');


$ui = $MIOLO->GetUI();

$theme->ClearContent();

$close = $MIOLO->GetActionURL($module,'main');
$cmPanel = new ActionPanel('pnlAdmin', _M('Sysacad',$module),'', $close, $ui->GetImage($module,'system-16x16.png'));
$cmPanel->AddAction( _M('Clientes', $module), $ui->getImage('admin', 'modules-32x32.png'), $module, 'cliente');
$cmPanel->AddAction( _M('Funcion&aacute;rio', $module), $ui->getImage('admin', 'modules-32x32.png'), $module, 'funcionario');
$cmPanel->AddAction( _M('Pagamentos', $module), $ui->getImage('admin', 'modules-32x32.png'), $module, 'pagamento');

$handled = $MIOLO->InvokeHandler($module,$a);
if (! $handled)
{
	$theme->InsertContent($cmPanel);
}
include_once($MIOLO->GetConf('home.modules') .'/main_menu.inc');
